<!-- Sản phẩm mới -->
<div class="navigation_title">
    Sản Phẩm Mới
</div>
<div class="navigation_body" style="clear: both; position: relative; padding-top: 10px; overflow: auto;">
    <?php
        $sanpham = new sanphambs();
        $ret_sanpham = $sanpham->getListNewProduct();
        
        $k = 2;
        for($i = 0; $i < ($ret_sanpham != false ? count($ret_sanpham) : 0); $i++)
        {
            if($k%3 == 0)
            {
                $cen = ' cen';
                $k = 0;
            }
            else
                $cen = '';
            $HinhNho = explode('|', $ret_sanpham[$i]["HinhNho"]);    
            echo "<div class='product $cen'>
                        <a href='index.php?root=pro&kid={$ret_sanpham[$i]["MaLoaiSanPham"]}&kid1={$ret_sanpham[$i]["MaLoaiSanPhamCap1"]}&kid2={$ret_sanpham[$i]["MaLoaiSanPhamCap2"]}&kid3={$ret_sanpham[$i]["MaLoaiSanPhamCap3"]}&cont=chitiet_sanpham&sid={$ret_sanpham[$i]["MaSanPham"]}'>
                        <span><img style='width: 150px; height: 150px;' src='images/sanpham/hinhnho/{$HinhNho[0]}' /></span>
                        <span>{$ret_sanpham[$i]["TenSanPham"]}</span>
                        </a>
                        <span class='rice'>{$ret_sanpham[$i]["GiaGoc"]}</span>
                        <span>
                            <a href='index.php?cont=mua_sanpham&sid={$ret_sanpham[$i]["MaSanPham"]}'><img src='images/muahang.png' /></a>
                        </span>
                      </div>";
            $k++;
        }
    ?>
</div>
<div class="navigation_footer" style="clear: both;">
    &nbsp;
</div>


<!-- Tin tức -->
<div class="navigation_title">
    Tin tức
</div>
<div class="navigation_body" style="clear: both; position: relative; padding-top: 10px; overflow: hidden;">
    
</div>
<div class="navigation_footer" style="clear: both;">
    &nbsp;
</div>